const CracoLessPlugin = require("craco-less")
const path = require("path")
module.exports = {
    webpack:{
        alias:{
            //__dirname是全局变量.代表获取当前这个文件的绝对路径
            //__dirname=c/desktop/web34/react-mall  + src
            "@":path.resolve(__dirname,"src"),
            "@comp":path.resolve(__dirname,"src/components")
        }
    },
    plugins: [
        { plugin: CracoLessPlugin }
    ]
}